import {request} from 'umi';
import {AccountApprove} from "@/pages/Account/Approve/data";

export async function accountApprove(): Promise<{ data: AccountApprove }> {
  return request('/v2/enterprise/account/approve', {
    method: 'POST',
  });
}

export async function accountApproveSave(params: AccountApprove) {
  return request<API.Result<void>>('/v2/enterprise/account/approve/save', {
    method: 'POST',
    data: params,
  });
}
